import 'package:flutter/material.dart';
class Test_Button extends StatelessWidget {
  const Test_Button({super.key});

  @override
  Widget build(BuildContext context) {
    return   Scaffold(
      appBar: AppBar(title: Text('Button')),
      body: ListView(children: [
        // 漂浮
        ElevatedButton(onPressed: (){}, child: Text('ElevatedButton')),
        // 文本按钮
        TextButton(onPressed: (){}, child: Text('TextButton')),
        // 边框
        OutlinedButton(onPressed: (){}, child: Text('OunLinedButton')),
        // 图标按钮
        IconButton(onPressed: (){}, icon: Icon(Icons.thumb_down)),
      //   ------------带图标---------------
        ElevatedButton.icon(icon:Icon(Icons.ac_unit_outlined),onPressed: (){}, label: Text('ElevatedButton'))
      ],),
    );();
  }
}
